export interface SearchService {

    icon?: string

    name: string

    searchUrl: (keyword: string) => string

}


export const BuiltInServices: Array<SearchService> = [
    {
        icon: '/search_engine_logo/bing.png',
        name: '必应',
        searchUrl: keyword => `https://www.bing.com/search?q=${ keyword }&mkt=zh-CN`,
    },
    {
        icon: '/search_engine_logo/baidu.png',
        name: '百度',
        searchUrl: keyword => `https://www.baidu.com/s?ie=utf-8&wd=${ keyword }`,
    },
    {
        icon: '/search_engine_logo/google.png',
        name: '谷歌',
        searchUrl: keyword => `https://www.google.com/search?q=${ keyword }`,
    },
]
